const echarts = require('echarts/lib/echarts');

const config = {
    animationDuration: 800,
    animationDurationUpdate: 1500, //就不生效2333
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    xAxis: {
        type: 'category',
        boundaryGap: false,
        data:  ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
        show: true,
        axisLine: {
            lineStyle: {
                color: "#818285"
            }
        },
        axisLabel: {
            color: "#818285",
            fontWeight: "normal",
            fontFamily: "Microsoft Yahei",
            fontSize: 13
        },
    },
    yAxis: {
        type: "value",
        show: true,
        min:'dataMin',
        max:'dataMax',
        splitNumber:5,
        axisLine: {
            show: true,
            lineStyle: {
                color: "#999"
            }
        },
        axisLabel:{
            fontSize:12,
            fontWeight:'normal',
            fontFamily:'Microsoft YaHei',
            color:'#000'
        },
        splitLine: {
            show: false,
            lineStyle:{
                color:'#000',
                type:'solid'
            }
          }
      },
    series: [{
            name: '基本折线图',
            type: 'line',
            smooth: false,
            symbolSize: 5,
            silent:true,
            symbol: 'circle',
            label: {
                show: false,
                fontWeight:'normal',
                fontFamily:'Microsoft YaHei',
                fontSize:12,
                color:'#000'
              },
            emphasis: {
                focus: 'series'
            },
            data: [150, 230, 224, 218, 135, 147, 260],
            lineStyle: {
                color: '#dc1515',
                width: 5,
                type:'solid'
            },
            itemStyle: {
                color: '#dc1515'
            }
        }
    ]
};

export {
    config
}